/*
 *	MIDAS Context Based Routing
 *	cbr_daemon.h
 *	Copyright (c) 2007 Bartlomiej Zolnierkiewicz
 *	MEAG IT PW
 */

#include <pthread.h>

#include "cbr_types.h"
#include "cbr_debug.h"

#include "fifo.h"

int cbr_sendto(CBR *, int, int, void *, cbr_ID, bool);

int cbr_select(CBR *, int, void *, bool);

extern fifo_t *cbr_in_pkts_fifo;
extern fifo_t *cbr_out_pkts_fifo;

extern pthread_mutex_t cbr_in_pkts_mutex;
extern pthread_cond_t cbr_in_pkts_cv;

extern pthread_mutex_t cbr_out_pkts_mutex;
extern pthread_cond_t cbr_out_pkts_cv;
